package com.yj.cloudnote.dao;

import com.yj.cloudnote.model.Share;
import org.springframework.stereotype.Repository;

import java.util.HashMap;
import java.util.List;

@Repository
public interface ShareMapper {
    int deleteByPrimaryKey(Integer shareId);

    int insert(Share record);

    int insertSelective(Share record);

    Share selectByPrimaryKey(Integer shareId);

    Share selectByUsernameFileID(HashMap params);

    int updateByPrimaryKeySelective(Share record);

    int updateByPrimaryKey(Share record);

    List<Share> selectComplaintsByPage(HashMap params);

    int getComplaintsCount();
}